package com.yaozheng.vocationaltraining.utils;

import android.text.Editable;
import android.text.Selection;
import android.widget.EditText;

/**
 * view帮助类
 */
public class ViewUtils {
    /**
     * edit光标到最后
     * @param editText
     */
    public static void editCursorLast(EditText editText) {
        try {
            Editable etext = editText.getText();
            Selection.setSelection(etext, etext.length());
        } catch (Exception ex) {
            ErrorUtils.outErrorLog(ex);
        }
    }
}
